package cn.bone.quartz.demo1;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created by superbone on 2016/10/10.
 */
public class HelloJob implements Job {

    private Logger log = LogManager.getLogger("测试任务");

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        log.info("执行任务");
        log.info(context);
    }
}
